package com.qf.handler;

import com.qf.util.ResultVOUtil;
import com.qf.vo.ResultVO;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class RoleExceptionHandler {

    @ExceptionHandler(RoleException.class)
    public ResultVO error(RoleException ex){
        return ResultVOUtil.error(ex);
    }
}
